package com.tensquare.article.pojo;
/*
 *ClassName:Comment1
 *Description:文章评论，基于MongoDB
 *@author:可爱的大鸭子
 */

import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@ToString
//@Document("spit")  和文档的有效映射
public class Comment1 implements Serializable {
    @Id
    private String _id;
    private String articleid;
    private String content;
    private String userid;
    private String parentid;
    private Date publishdate;
    private Integer thumbup;
}
